<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/admin/qrcode/jquery2.1.4.js"></script>
</head>
<body>
<!--/*@thymesVar id="auto" type=""*/-->
<input id="msg" type="hidden" th:value="${auto}"/>
<script>
    $(function (){
        let msg=$("#msg").val();
        console.log(msg)
        //将字符串转成对象
        var temp = $.parseJSON(msg)
        console.log(temp.autoId)
        alert(temp.autoName)
    })

</script>
</body>
</html>